home *** CD-ROM | disk | FTP | other *** search
- on lfxkeycontrol
- dontPassEvent()
- set the keyDownScript to "checkKey"
- end
-
- on lfxkeycontroloff
- dontPassEvent()
- set the keyDownScript to EMPTY
- end
-
- on checkkey
- global gvmacorwin, glkeyset, gvslevellist, gvsoundlevel, gvtempo, gvpictnum, glpictlist, gvmovpouse, gvmovpoint, gvmovhelppoint, gvmovwait, gvlmovie, gvhelpmode
- dontPassEvent()
- case getPos(glkeyset, the keyCode) of
- 1:
- nothing()
- unloadorb()
- set gvhelpmode to 0
- helphyoujiorb("Off")
- updateStage()
- go("Back", "MENU")
- 2:
- nothing()
- unloadorb()
- set gvhelpmode to 0
- helphyoujiorb("Off")
- updateStage()
- go("Back", "MENU")
- 3:
- nothing()
- 4:
- nothing()
- 5:
- nothing()
- 6:
- nothing()
- 7:
- nothing()
- if gvhelpmode = 0 then
- set gvhelpmode to 1
- cursor([32, 33])
- else
- set gvhelpmode to 0
- helphyoujiorb("Off")
- updateStage()
- end if
- 8:
- nothing()
- if gvsoundlevel < count(gvslevellist) then
- set gvsoundlevel to gvsoundlevel + 1
- else
- set gvsoundlevel to count(gvslevellist)
- end if
- set the volume of sound 1 to getAt(gvslevellist, gvsoundlevel)
- set the volume of sound 2 to getAt(gvslevellist, gvsoundlevel)
- puppetSound(2, "select.aif")
- 9:
- nothing()
- if gvsoundlevel > 1 then
- set gvsoundlevel to gvsoundlevel - 1
- else
- set gvsoundlevel to 1
- end if
- set the volume of sound 1 to getAt(gvslevellist, gvsoundlevel)
- set the volume of sound 2 to getAt(gvslevellist, gvsoundlevel)
- puppetSound(2, "select.aif")
- end case
- if the keyCode = 0 then
- if gvhelpmode = 0 then
- set gvhelpmode to 1
- cursor([32, 33])
- else
- set gvhelpmode to 0
- helphyoujiorb("Off")
- updateStage()
- end if
- end if
- if gfxexitmovie() then
- unloadorb()
- set gvhelpmode to 0
- helphyoujiorb("Off")
- updateStage()
- gfxfalsepapette(1, 48)
- go(1, "ENDING")
- end if
- end
-